package com.felix.bean;

import java.util.List;

public class Carshare {
	private int cid;
	private int uid;
	private int car_sharer;
	private int status;
	private int sitcount;
	private int sitleft;
	private int trip_type;
	private String from_city;
	private String to_city;
	private String from_addr;
	private String to_addr;
	private String gotime;
	private String returntime;
	private String add_time;
	private String cartype;
	private String remark;
	private int pid;
	private String tb_username;
	private String tb_usersex;
	private List<User> tb_joiners;
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public int getCar_sharer() {
		return car_sharer;
	}
	public void setCar_sharer(int carSharer) {
		car_sharer = carSharer;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getSitcount() {
		return sitcount;
	}
	public void setSitcount(int sitcount) {
		this.sitcount = sitcount;
	}
	public int getSitleft() {
		return sitleft;
	}
	public void setSitleft(int sitleft) {
		this.sitleft = sitleft;
	}
	public int getTrip_type() {
		return trip_type;
	}
	public void setTrip_type(int tripType) {
		trip_type = tripType;
	}
	public String getFrom_city() {
		return from_city;
	}
	public void setFrom_city(String fromCity) {
		from_city = fromCity;
	}
	public String getTo_city() {
		return to_city;
	}
	public void setTo_city(String toCity) {
		to_city = toCity;
	}
	public String getFrom_addr() {
		return from_addr;
	}
	public void setFrom_addr(String fromAddr) {
		from_addr = fromAddr;
	}
	public String getTo_addr() {
		return to_addr;
	}
	public void setTo_addr(String toAddr) {
		to_addr = toAddr;
	}
	public String getGotime() {
		if (gotime!=null&&gotime.length()>10) {
			return gotime.substring(0,10);
		}
		return gotime;
	}
	public void setGotime(String gotime) {
		this.gotime = gotime;
	}
	public String getReturntime() {
		if (returntime!=null&&returntime.length()>10) {
			return returntime.substring(0,10);
		}
		return returntime;
	}
	public void setReturntime(String returntime) {
		this.returntime = returntime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getTb_username() {
		return tb_username;
	}
	public void setTb_username(String tbUsername) {
		tb_username = tbUsername;
	}
	public String getTb_usersex() {
		return tb_usersex;
	}
	public void setTb_usersex(String tbUsersex) {
		tb_usersex = tbUsersex;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getCartype() {
		return cartype;
	}
	public void setCartype(String cartype) {
		this.cartype = cartype;
	}
	public String getAdd_time() {
		return add_time;
	}
	public void setAdd_time(String addTime) {
		add_time = addTime;
	}
	public List<User> getTb_joiners() {
		return tb_joiners;
	}
	public void setTb_joiners(List<User> tbJoiners) {
		tb_joiners = tbJoiners;
	}
	public Carshare(Carshare csh) {
//		this.cid = csh.;
		this.uid = csh.getUid();
		this.car_sharer = csh.getCar_sharer();
		this.status = csh.getStatus();
		this.sitcount = csh.getSitcount();
		this.sitleft = csh.getSitleft();
		this.trip_type = csh.getTrip_type();
		this.from_city = csh.getFrom_city();
		this.to_city = csh.getTo_city();
		this.from_addr = csh.getFrom_addr();
		this.to_addr = csh.getTo_addr();
		this.gotime = csh.getGotime();
		this.returntime = csh.getReturntime();
		this.add_time = csh.getAdd_time();
		this.cartype = csh.getCartype();
		this.remark = csh.getRemark();
		this.pid = csh.getPid();
	}
	public Carshare(){
		
	}


}
